home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 351 < prev    next >
Internet Message Format  |  1994-08-27  |  1KB

  1. Date: Tue, 6 Jul 1993 09:30:47 +0200
  2. From: Thomas Schulze <ts@uni-paderborn.de>
  3. Message-Id: <199307060730.AA07505@elba.uni-paderborn.de>
  4. To: mint@terminator.rs.itd.umich.edu
  5. Subject: MiNT-1.07 mediach() patch
  6. In-Reply-To: Mail from 'shenson@nyx.cs.du.edu (Stephen Henson)'
  7.       dated: Mon, 5 Jul 93 15:48:23 MDT
  8.  
  9. Hi,
  10.  
  11. here is a small patch for MiNT-1.07beta. The problem was
  12. calling mediach() for a filesystem which has no bios device
  13. associated. Now we check if the drive is known to gemdos
  14. and let it fall through.
  15.  
  16. I'm not sure wether this works without problems. Please let
  17. me know your thoughts about it.
  18.  
  19. Cheers, Thomas.
  20. ts@uni-paderborn.de
  21.  
  22.  
  23. --- filesys.org    Thu Jul  1 10:11:28 1993
  24. +++ filesys.c    Thu Jul  1 09:12:54 1993
  25. @@ -375,8 +375,17 @@
  26.  TRACE(("calling mediach(%d)",d));
  27.      r = (int)mediach(d);
  28.  TRACE(("mediach(%d) == %d", d, r));
  29. -
  30. +#if 1    /* Local patch by zork/tfs for ydisk and other
  31. +     * non-bios-device-filesystems
  32. +     */
  33. +if (r < 0)
  34. +    if ((r == EUNDEV) && ((drvmap() & (1UL << d)) != 0))
  35. +        return 0; /* No media-change on a no-bios-device-filesystem */
  36. +    else 
  37. +        return r;
  38. +#else
  39.      if (r < 0) return r;
  40. +#endif
  41.      if (r == 1) {        /* drive _may_ have changed */
  42.          r = rwabs(0, tmpbuf, 1, 0, d, 0L);    /* check the BIOS */
  43.          if (r != E_CHNG) {            /* nope, no change */
  44.  
  45.